namespace ApplicationLibrary.ExtendedControls
{
    public class LookUpComboItem : object
    {
        // forecolor: transparent = inherit
        private object tag = null;

        private string code = string.Empty;
        private string desc = string.Empty;

        // constructors
        public LookUpComboItem()
        {
        }

        public LookUpComboItem(string Code, string Description)
        {
            code = Code;
            desc = Description;
        }

        // tag
        public object Tag
        {
            get
            {
                return tag;
            }
            set
            {
                tag = value;
            }
        }

        // item text
        public string Code
        {
            get
            {
                return code;
            }
            set
            {
                code = value;
            }
        }

        public string Descrription
        {
            get
            {
                return desc;
            }
            set
            {
                desc = value;
            }
        }

        // ToString() should return item text
        public override string ToString()
        {
            return code;
        }
    }
}